package com.cinc.ebc.sd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.ebc.sd.entity.SdContract;
import com.cinc.ebc.sd.entity.SdContractDetail;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 销售合同
 * @Author: jeecg-boot
 * @Date:   2022-08-01
 * @Version: V1.0
 */
public interface ISdContractService extends IService<SdContract> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(SdContract crmContract, List<SdContractDetail> sdContractDetailList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(SdContract crmContract,List<SdContractDetail> sdContractDetailList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 自动更新合同信息
	 * @param id
	 */
	void autoUpdateContract(String id);

}
